﻿using Rbac.Api.Dto;

namespace Rbac.Api.ServiceInterface;

public interface IPermissionService : IScopedService
{
    Task<IEnumerable<PermissionDto>> GetAllPermissionsAsync();
    Task<PermissionDto> GetPermissionByIdAsync(int id);
    Task<PermissionDto> CreatePermissionAsync(CreatePermissionDto createDto);
    Task<bool> UpdatePermissionAsync(UpdatePermissionDto updateDto);
    Task<bool> DeletePermissionAsync(int id);
}